//
//  PickViewController.m
//  XiangCaoJiaYuan
//
//  Created by long Kan on 17/10/20.
//  Copyright © 2017年 tongj. All rights reserved.
//

#import "PickViewController.h"

@interface PickViewController ()

@end

@implementation PickViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"行业选择";
    UIButton *backbutton = [[UIButton alloc]initWithFrame:CGRectMake(10, 20, 15, 25)];
    [backbutton setBackgroundImage:[UIImage imageNamed:@"香草园地-发布信息_03@2x"] forState:UIControlStateNormal];
    [backbutton addTarget:self action:@selector(goBacktoUp) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *backItem = [[UIBarButtonItem alloc]initWithCustomView:backbutton];
    self.navigationItem.leftBarButtonItem = backItem;
    self.view.backgroundColor = [UIColor whiteColor];
    [self ui];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)goBacktoUp
{
    [self.navigationController popViewControllerAnimated:YES];
}
-(void)ui{
    UILabel *line1 = [[UILabel alloc]initWithFrame:CGRectMake(0,120*HEIGHT , UIScreen_WIDTH, 0.5)];
    line1.backgroundColor = HEXRGB(0xcccccc);
    [self.view addSubview:line1];
    UILabel *line2 = [[UILabel alloc]initWithFrame:CGRectMake(0,240*HEIGHT , UIScreen_WIDTH, 0.5)];
    line2.backgroundColor = HEXRGB(0xcccccc);
    [self.view addSubview:line2];
    UILabel *line3 = [[UILabel alloc]initWithFrame:CGRectMake(0,360*HEIGHT , UIScreen_WIDTH, 0.5)];
    line3.backgroundColor = HEXRGB(0xcccccc);
    [self.view addSubview:line3];
    UILabel *line4 = [[UILabel alloc]initWithFrame:CGRectMake(UIScreen_WIDTH/2,0 , 0.5, 240*HEIGHT)];
    line4.backgroundColor = HEXRGB(0xcccccc);
    [self.view addSubview:line4];
    UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, UIScreen_WIDTH/2, 120*HEIGHT)];
    [btn1 setImage:[UIImage imageNamed:@"btn_food_nor"] forState:UIControlStateNormal];
    [btn1 addTarget:self action:@selector(clickBtn1) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn1];
    UIButton *btn2 = [[UIButton alloc]initWithFrame:CGRectMake(UIScreen_WIDTH/2, 0, UIScreen_WIDTH/2, 120*HEIGHT)];
    [btn2 setImage:[UIImage imageNamed:@"btn_relaxation_nor"] forState:UIControlStateNormal];
    [btn2 addTarget:self action:@selector(clickBtn2) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn2];
    UIButton *btn3 = [[UIButton alloc]initWithFrame:CGRectMake(0, 120*HEIGHT, UIScreen_WIDTH/2, 120*HEIGHT)];
    [btn3 setImage:[UIImage imageNamed:@"btn_live_nor"] forState:UIControlStateNormal];
    [btn3 addTarget:self action:@selector(clickBtn3) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn3];
    UIButton *btn4 = [[UIButton alloc]initWithFrame:CGRectMake(UIScreen_WIDTH/2, 120*HEIGHT, UIScreen_WIDTH/2, 120*HEIGHT)];
    [btn4 addTarget:self action:@selector(clickBtn4) forControlEvents:UIControlEventTouchUpInside];
    [btn4 setImage:[UIImage imageNamed:@"btn_study_nor"] forState:UIControlStateNormal];
    [self.view addSubview:btn4];
    UIButton *btn5 = [[UIButton alloc]initWithFrame:CGRectMake(0, 240*HEIGHT, UIScreen_WIDTH, 120*HEIGHT)];
    [btn5 setImage:[UIImage imageNamed:@"btn_other_nor"] forState:UIControlStateNormal];
    [btn5 addTarget:self action:@selector(clickBtn5) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn5];
}
-(void)clickBtn1{
    
    [self.navigationController popViewControllerAnimated:YES];

}
-(void)clickBtn2{
    [self.navigationController popViewControllerAnimated:YES];

}
-(void)clickBtn3{
    [self.navigationController popViewControllerAnimated:YES];

}
-(void)clickBtn4{
    [self.navigationController popViewControllerAnimated:YES];

}
-(void)clickBtn5{
    [self.navigationController popViewControllerAnimated:YES];

}
@end
